/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package persistencia;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author aridrobo
 */
@Entity
@Table(name = "Evaluador")
@NamedQueries({
    @NamedQuery(name = "Evaluador.findAll", query = "SELECT e FROM Evaluador e"),
    @NamedQuery(name = "Evaluador.findByIdEvaluador", query = "SELECT e FROM Evaluador e WHERE e.idEvaluador = :idEvaluador"),
    @NamedQuery(name = "Evaluador.findByNomEvaluador", query = "SELECT e FROM Evaluador e WHERE e.nomEvaluador = :nomEvaluador"),
    @NamedQuery(name = "Evaluador.findByApeEvaluador", query = "SELECT e FROM Evaluador e WHERE e.apeEvaluador = :apeEvaluador"),
    @NamedQuery(name = "Evaluador.findByExperienciaLab", query = "SELECT e FROM Evaluador e WHERE e.experienciaLab = :experienciaLab"),
    @NamedQuery(name = "Evaluador.findByEstudios", query = "SELECT e FROM Evaluador e WHERE e.estudios = :estudios"),
    @NamedQuery(name = "Evaluador.findByEspecialidad", query = "SELECT e FROM Evaluador e WHERE e.especialidad = :especialidad"),
    @NamedQuery(name = "Evaluador.findByIdProyMan", query = "SELECT e FROM Evaluador e WHERE e.idProyMan = :idProyMan"),
    @NamedQuery(name = "Evaluador.findByEmail", query = "SELECT e FROM Evaluador e WHERE e.email = :email"),
    @NamedQuery(name = "Evaluador.findByLogin", query = "SELECT e FROM Evaluador e WHERE e.login = :login"),
    @NamedQuery(name = "Evaluador.findByPass", query = "SELECT e FROM Evaluador e WHERE e.pass = :pass")})
public class Evaluador implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "idEvaluador", nullable = false)
    private Integer idEvaluador;
    @Basic(optional = false)
    @Column(name = "nomEvaluador", nullable = false, length = 50)
    private String nomEvaluador;
    @Basic(optional = false)
    @Column(name = "apeEvaluador", nullable = false, length = 50)
    private String apeEvaluador;
    @Basic(optional = false)
    @Column(name = "experienciaLab", nullable = false, length = 50)
    private String experienciaLab;
    @Basic(optional = false)
    @Column(name = "estudios", nullable = false, length = 100)
    private String estudios;
    @Basic(optional = false)
    @Column(name = "especialidad", nullable = false, length = 50)
    private String especialidad;
    @Basic(optional = false)
    @Column(name = "idProyMan", nullable = false)
    private int idProyMan;
    @Column(name = "email", length = 30)
    private String email;
    @Basic(optional = false)
    @Column(name = "login", nullable = false, length = 10)
    private String login;
    @Basic(optional = false)
    @Column(name = "pass", nullable = false, length = 30)
    private String pass;

    public Evaluador() {
    }

    public Evaluador(Integer idEvaluador) {
        this.idEvaluador = idEvaluador;
    }

    public Evaluador(Integer idEvaluador, String nomEvaluador, String apeEvaluador, String experienciaLab, String estudios, String especialidad, int idProyMan, String login, String pass) {
        this.idEvaluador = idEvaluador;
        this.nomEvaluador = nomEvaluador;
        this.apeEvaluador = apeEvaluador;
        this.experienciaLab = experienciaLab;
        this.estudios = estudios;
        this.especialidad = especialidad;
        this.idProyMan = idProyMan;
        this.login = login;
        this.pass = pass;
    }

    public Integer getIdEvaluador() {
        return idEvaluador;
    }

    public void setIdEvaluador(Integer idEvaluador) {
        this.idEvaluador = idEvaluador;
    }

    public String getNomEvaluador() {
        return nomEvaluador;
    }

    public void setNomEvaluador(String nomEvaluador) {
        this.nomEvaluador = nomEvaluador;
    }

    public String getApeEvaluador() {
        return apeEvaluador;
    }

    public void setApeEvaluador(String apeEvaluador) {
        this.apeEvaluador = apeEvaluador;
    }

    public String getExperienciaLab() {
        return experienciaLab;
    }

    public void setExperienciaLab(String experienciaLab) {
        this.experienciaLab = experienciaLab;
    }

    public String getEstudios() {
        return estudios;
    }

    public void setEstudios(String estudios) {
        this.estudios = estudios;
    }

    public String getEspecialidad() {
        return especialidad;
    }

    public void setEspecialidad(String especialidad) {
        this.especialidad = especialidad;
    }

    public int getIdProyMan() {
        return idProyMan;
    }

    public void setIdProyMan(int idProyMan) {
        this.idProyMan = idProyMan;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idEvaluador != null ? idEvaluador.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Evaluador)) {
            return false;
        }
        Evaluador other = (Evaluador) object;
        if ((this.idEvaluador == null && other.idEvaluador != null) || (this.idEvaluador != null && !this.idEvaluador.equals(other.idEvaluador))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "persistencia.Evaluador[idEvaluador=" + idEvaluador + "]";
    }

}
